gdkwindow: Do not rely on a previous slave device when updating grab
authorRob Bradford <rob@linux.intel.com>
Wed, 23 Jan 2013 16:55:59 +0000 (16:55 +0000)
committerRob Bradford <rob@linux.intel.com>
Wed, 6 Feb 2013 14:17:46 +0000 (14:17 +0000)
commit03d405e4849f698959675056607c56c6ca35d072
tree43e7b346dc9b2f47310caee662a604583b28d477
parent898d5776755281a1de1179516f38ae917ea16d50
gdkwindow: Do not rely on a previous slave device when updating grab

_gdk_display_device_grab_update does not support passing in NULL for the
source device. If we don't have a slave device (saved in the pointer info)
then do not try and use that NULL pointer for the source_device.

This bug appeared in the Wayland backend where we (currently) only have master
devices exposed and as such no slave device is ever saved.

Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=692411
gdk/gdkwindow.c